<?php

namespace App\Http\Controllers\Api;

use App\Models\News;
use App\Transformers\NewsTransformer;
use Illuminate\Http\Request;

class LogBalanceController extends Controller
{
    public function index(Request $request)
    {
        $where = $request->only([
            //??
        ]);

        $data = News::where('is_show', 1)->where($where)->paginate();

        return $this->response->paginator($data, new NewsTransformer());
    }
}
